package com.juben.svr.domain.Enum;

public enum EmailType {
    注册邮箱验证("1"),
    登录邮箱验证("2"),
    忘记密码邮箱验证("3");
    private  String value;

    EmailType(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
    public static EmailType fromValue(String value) {
        for (EmailType state : EmailType.values()) {
            if (state.getValue().equals(value)) {
                return state;
            }
        }
        return null;
    }

}
